package d2_final_exam.d2_second_question;

import java.util.Set;

public class Student {
    //1、给它两个属性
    private String name;//学生名字
    private Set<String> scenicSpot;//学生选取的景点

    //2、提供相应的get与set方法

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public Set<String> getScenicSpot() {
        return scenicSpot;
    }

    public void setScenicSpot(Set<String> scenicSpot) {
        this.scenicSpot = scenicSpot;
    }

    @Override
    public String toString() {
        return "Student{" +
                "name='" + name + '\'' +
                ", scenicSpot=" + scenicSpot +
                '}';
    }
}
